#ifndef ConnectionSocket_H_29022012
#define ConnectionSocket_H_29022012

#include <string>
#include <arpa/inet.h>

#include "exception_error.hpp"
#include "exception_closed.hpp"

namespace utils
{

class ConnectionSocket
{
public:

	ConnectionSocket( int nFD );
	virtual ~ConnectionSocket() = 0;

	void Send( const std::string& ) const;
	void Receive( std::string& ) const;

private:
	int m_nConnectionFD;
	sockaddr_in m_addr;
}; // class ConnectionSocket

} // namespace utils

#endif

